<?php
namespace Model;
use Think\Model;

/**
 * Created by PhpStorm.
 * User: Yujie
 * Date: 2018/9/1
 * Time: 00:23
 */
class TagModel  extends Model{

    public function addOne($data){
        $ret = $this->data($data)->add();
        return $ret;
    }
    public function selectAll($w=1,$f='*'){
        $ret = $this->where($w)->field($f)->select();
        return $ret;
    }
}